-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(radio): tailwindify #1696
Conversation
should be 12/14/18 so they pair with 12/14/18 labels and most components which use 12/14/18 type |
@julio8a you could use the font size scale from theme to make it explicit this is sized relative to text. Also, since the value is frequently used you could set via a CSS var like we do in other components: :host([scale="s"]) {
--calcite-radio-size: theme("fontSize.-2");
}
:host([scale="m"]) {
--calcite-radio-size: theme("fontSize.-1");
}
:host([scale="l"]) {
--calcite-radio-size: theme("fontSize.1");
}
.radio {
height: var(--calcite-radio-size);
min-width: var(--calcite-radio-size);
max-width: var(--calcite-radio-size);
} This also means that they will scale with the text when users zoom as they'll be in |
box-shadow: inset 0 0 0 1px var(--calcite-ui-border-1); | ||
cursor: pointer; | ||
@apply rounded-full cursor-pointer; | ||
box-shadow: inset 0 0 0 1px var(--calcite-ui-border-input); | ||
transition: all 0.15s ease-in-out; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
transition-all duration-150 ease-in-out
Supports #1694 #1500
Medium: code and design have 14px, however, tailwind doesn't have this vlaue. Tailwind 2.0 does have it, maybe a reason to update? @jrowlingson
Large: code has 20px, design has 18px (which is not a tailwind value). Used 20px for now.
^^ @bstifle